UkrSolution\BarcodeScanner\API\actions\CartActions D

Total Complexity 196
Dependencies 7
Dependents 3
Total lines 820
Lines of code 604
Logical lines of code 383
Comment lines 0
Methods 22
Properties 4

Methods 22

Method Rating Maintainability Complexity Lines of code
orderCreate()
C
30 26 114
addItemToCart()
B
40 24 55
findProductInCart()
B
46 23 33
addItem()
A
40 15 53
updateQuantity()
A
42 15 47
itemSetPrice()
A
52 13 23
wcSession()
A
46 11 35
restoreCart()
A
49 10 29
getWcCheckoutErrors()
A
56 8 18
initFieldPrice()
S
58 8 13
updateAttributes()
S
50 7 28
changeQuantityInCart()
S
54 7 20
setOrderTotal()
S
57 7 17
formatPriceForUpdate()
S
57 5 18
getWcErrors()
S
61 5 12
getShippingMethod()
S
62 4 11
removeItem()
S
56 2 18
getCartDetails()
S
54 1 21
getCartItems()
S
63 2 10
cartRecalculate()
S
60 1 13
cartClear()
S
66 1 9
getStatuses()
S
69 1 7